package com.aaa.aop1.service.controller;

import com.aaa.aop1.service.annotation.Mypermission;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年11月11日15:23
 */
@RestController
@RequestMapping("/user")
public class UserController {


    @PostMapping("/list")
    @Mypermission("list")
    public String list(){
        System.out.println("查看");
        return "list";
    }

    @PostMapping("/save")
    @Mypermission("save")
    public String save(){
        System.out.println("添加");
        return "save";
    }
}
